package com.hst.capacity.infra.persistence.jpa.setting.price;


import com.hst.capacity.domain.model.entity.setting.price.IntercityStpPriceEntity;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface IcStpPriceRepository extends CrudRepository<IntercityStpPriceEntity, Integer> {

    /**
     * 通过线路和站点查找定价
     * @param idLine
     * @param idStation
     * @return
     */
    List<IntercityStpPriceEntity> findByIdLineAndIdStation(String idLine, String idStation);

    /**
     * 通过线路和站点查找定价
     * @param idCityLine
     * @param idStation
     * @return
     */
    List<IntercityStpPriceEntity> findByIdCityLineAndIdStation(String idCityLine, String idStation);

}
